package ca.uwo.android.directoryservice;

import org.json.JSONException;
import org.json.JSONObject;

public class StudentData extends DirectorySearchData {
	
	private static final long serialVersionUID = 2250137589045163604L;
	
	private String program;
	
	public StudentData(JSONObject data) throws JSONException {
		super(data);
		if(data.has("registeredIn"))
			program = data.getString("registeredIn");
		else
			program = null;
	}
			
	public String getProgram() {
		return program;
	}
	
	@Override
	public boolean isFaculty() {
		return false;
	}

	@Override
	public boolean isStudent() {
		return true;
	}
}
